<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Money Test</title>
<script type="text/javascript" src="../liwe.js"></script>
<script type="text/javascript" src="../utils.js"></script>
<script type="text/javascript" src="../string_enh.js"></script>
<script type="text/javascript" src="../money.js"></script>
<script type="text/javascript">
function test_money ()
{
	var m = new Money ( "10,53" );

	$( "test1" ).innerHTML = "10,53 => " + m.value;

	$( "test2" ).innerHTML = "123,12 => " + new Money ( "123,12" ).value;
	$( "test3" ).innerHTML = "123,45 => " + Money.toFloat( "123,45" );
	$( "test4" ).innerHTML = "123,00 => " + Money.toFloat( 123 );
	$( "test5" ).innerHTML = "4561,23 => " + new Money ( "0456123" ).value;
	$( "test6" ).innerHTML = String.formatDict ( "12,34 => %(money)m", { "money" : "1234" } );
	$( "test7" ).innerHTML = "123,45 => " + Money.fromLongInt ( "12345" );
} 

</script>
</head> 
<body onload="test_money()">

<div id="test1"></div>
<div id="test2"></div>
<div id="test3"></div>
<div id="test4"></div>
<div id="test5"></div>
<div id="test6"></div>
<div id="test7"></div>


</body>
</html>
